<template>
	<view class="contact">
		<image class="img" src="/static/imgs/contact.jpeg">
		<view class="info">
			<view class="" @click="phone">
				联系电话：111-111-11111(点击拨打)
			</view>
			<view class="">
				地址：广东省佛山市南海区狮山镇广云路33号
			</view>
		</view>
		<map class="map" :longitude="longitude" :latitude="latitude" :markers="markers" :scale="scale"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude:120.363172,
				latitude:30.312212,
				scale:11,
				markers:[
					{
						latitude:120.363172,
						longitude:30.312212,
						iconPath: '../../static/huojian.png',
						width:30,
						height:30
					}
				]
			}
		},
		methods: {
			phone(){
				uni.makePhoneCall({
					phoneNumber:'111-111-11111'
				})
			}
		}
	}
</script>

<style lang="scss">
	.contact{
		.img{
			width: 750rpx;
			height: 320rpx;
		}
	}
	.info{
		padding: 10rpx 20rpx;
		font-size: 30rpx;
		view{
			line-height: 80rpx;
			border-bottom: 1px solid #eee;
		}
	}
	.map{
		width: 750rpx;
		height: 700rpx;
	}

</style>
